package aimis.controller;


import aimis.domain.ErrorMsg;
import aimis.dto.Res;
import aimis.service.InformationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ErrorMessageController {
    @Autowired
    InformationServiceImpl informationService;

    @PostMapping("/getAllErrorMsg")
    public Res getall(){
        List<ErrorMsg> errorMsgs = informationService.GetAllErrorMsg();
        return Res.success(errorMsgs,"发送成功");
    }

}
